package com.example.dto.webchat;

import com.example.dto.ImagesDTO;
import com.example.model.dto.BaseDTO;
import com.example.validator.group.AddGroup;
import com.example.validator.group.UpdateGroup;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 套餐表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 1.0-SNAPSHOT 2025-04-29
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(description = "点餐商品")
public class CategoryGoodDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(description = "商品id")
    private Long id;
    @Schema(description = "商品名称")
    private String name;
    @Schema(description = "商品价格")
    private BigDecimal price;
    @Schema(description = "就餐类型：0:堂食; 1:外带；2：堂食外带； 3：配送； 4：全部 5：外带配送")
    private String eatType;
    @Schema(description = "分类ID")
    private Long categoryId;
    @Schema(description = "分类名称")
    private String categoryName;
    @Schema(description = "商品主图")
    private String imageUrl;
    @Schema(description = "商品缩略图")
    private String thumbnailUrl;
    @Schema(description = "是否有sku")
    private Boolean hasSku;
    @Schema(description = "是否是套餐")
    private Boolean isSetmeal;
    @Schema(description = "商品规格")
    private List<GoodSkuDTO> skuList;

}